cc.Class({
    extends: cc.Component,

    ChangeSelect: function () {
        var anim = this.getComponent(cc.Animation);
        var animState = anim.getAnimationState('button_start');
        if (animState.isPlaying == false) {
            anim.play('button_start');
        }

    },
    ChangeGuide: function () {
        var anim = this.getComponent(cc.Animation);
        var animState = anim.getAnimationState('button_guide');
        if (animState.isPlaying == false) {
            anim.play('button_guide');
        }

    },
    ChangeRank: function () {
        var anim = this.getComponent(cc.Animation);
        var animState = anim.getAnimationState('button_rank');
        if (animState.isPlaying == false) {
            anim.play('button_rank');
        }

    },
    ChangeSence: function (Scene) {
        if (Scene == 0) {
            cc.director.loadScene('home');
        }
        else if (Scene == 1) {
            cc.director.loadScene('select');
        }
        else if (Scene == 2) {
            cc.director.loadScene('guide');
        }
        else if (Scene == 3) {
            cc.director.loadScene('rank');
        }
    },
    // update (dt) {},
});
